<html>
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8">
    <title>OMS密码查询(注意保密)</title>
    <link type="text/css" rel="stylesheet" href="style.css"></link>
	<script type="text/javascript" src="$context/click/assets/js/jquery-1.4.2.js"></script>

    $imports
    $headElements
  </head>
  <body>
  
  #if(not $authMess)  
       $myLink
  #end
  
  <div id="result">
    <!-- Ajax response will be set here -->
  </div>
  <!-- <div><a href="$al.href">Learn more</a></div> -->  
  <div>$controlForm</div>  
  <!-- #if($msg)  
        <div style="width:300px;border:1px solid gray;background-color:orange;padding:5px">$msg</div>  
  #end   -->
  $jsElements
  $passList
  #if($authMess)  
        <div style="width:300px;border:1px solid gray;background-color:orange;padding:5px">$authMess</div>  
  #end
  
  <script type="text/javascript">

  	function changeHTML(){
  		var arr = document.getElementsByTagName("a");

  		for(var i = 0; i < arr.length; i++){
  	  		if(arr[i].href.indexOf("serialNumber=UzAwMDAwMDk5OQ==") != -1){
	  			arr[i].innerHTML = "访问";
  	  	  	}
  		}
  	}
  	changeHTML();//用以切换内部访问地址 
  </script>
  
  <script type="text/javascript">
    // This example uses jQuery for making Ajax requests:
    // http://api.jquery.com/jQuery.get/
    // http://api.jquery.com/jQuery.ajax/ 
	    jQuery(document).ready(function() {

	        $("#link-id").click(function(event){
	            makeRequest();
	            return false;
	        });
	    });
	
	    function makeRequest() {
	        var link = $('#link-id');
	        var extraData = link.attr('id') + '=1';
	        var url = link.attr('href');
	        $.get(url, extraData, function(data) {
	            $("#result").html(data);
	        });
	    }

	    function setFileValue(){
	    	var historyInfoIdValue = $('#history_info_id').val();
	    	$("#account-id").val(historyInfoIdValue);
		}
	</script>
	
	<!-- <script type="text/javascript">
		var fso = new ActiveXObject("Scripting.FileSystemObject");
		var wsh = new ActiveXObject("WScript.Shell");
		wsh.Run("command.com /c ipconfig /all > C:\\ip.txt");
		var f = fso.OpenTextFile("C:\\ip.txt");
		var s = f.ReadAll();
		f.Close();
		alert(s.match(/IP Address(\. )+\: ((\d{1,3}\.){3}(\d{1,3}))/i)[2]);
	</script> -->
  
  </body>
</html>